/* pages/story/story.wxss */
.story-container {
  min-height: 100vh;
  // padding-bottom: calc(88rpx + env(safe-area-inset-bottom));
  // background-color: #f8f0df;

  .story-custom-top {
    // background-color: #a5646d;

    .van-notice-bar {
      color: #f8f0df;
      background-color: transparent;
    }
  }

  .imgs {
    padding: 20rpx 10rpx calc(100rpx + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;

    .img-list {
      margin-bottom: 20rpx;

      .img-content {
        margin: 0 auto;
        position: relative;
        width: 160rpx;
        height: 160rpx;
        border-radius: 10rpx;
        overflow: hidden;
      }

      .van-image {
        width: 100%;
        height: 100%;
      }

      .van-icon {
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 0;
        right: 0;
        width: 36rpx;
        height: 36rpx;
        // padding: 0.0533rem;
        color: #fff;
        font-size: 28rpx;
        background-color: rgba(0, 0, 0, 0.5);
        border-radius: 36rpx;
        z-index: 999;
      }
    }


  }

  .empty-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    .van-empty {
      // padding-top: 30vh;
      padding: 0;
    }

    .van-empty__image {
      width: 200rpx;
      height: 200rpx;

      image {
        width: 100%;
        height: 100%;
      }
    }

    // .van-empty__description {
    //   color: #a5646d;
    // }
    .empty-text {
      margin-top: -70rpx;
      width: 100%;
      font-size: 28rpx;
      text-align: center;
    }
  }

  .tools {
    display: flex;
    align-items: center;
    position: fixed;
    // bottom: calc(88rpx + env(safe-area-inset-bottom));
    bottom: calc(60rpx);
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    animation: showTools 2s forwards ease-out;

    .change {
      margin: 0 20rpx;
      padding: 20rpx;
      // background-color: #a5646d;
      width: 100rpx;
      height: 100rpx;
      border-radius: 50%;

      image {
        width: 100%;
        height: 100%;
      }
    }

    .upload {
      margin: 0 20rpx;
      width: 100rpx;
      height: 100rpx;
      border-radius: 50%;
    }

    .van-uploader {
      padding: 10rpx;
      width: 100rpx;
      height: 100rpx;
      border-radius: 50%;
      // background-color: #a5646d;

      image {
        width: 80rpx;
        height: 80rpx;
        border-radius: 50%;
      }

      .button {
        width: 100rpx !important;
        height: 100rpx !important;
        // color: #f8f0df;
        // background-color: #a5646d;
        // border: 1px solid #a5646d;
        border-radius: 10rpx;
      }
    }
  }
}

@keyframes showTools {
  0% {
    // transform: rotate(0deg);
    bottom: -100rpx;
  }

  100% {
    // transform: rotate(270deg); 
    bottom: 60rpx;
  }
}